package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:Medins.java
 * @description	:
 * @author		:lileizheng
 * @date		:2015年4月2日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Entity
@Table (name = "T_MEDINS", schema = "DRGs")
public class Medins extends KoalaLegacyEntity {

private static final long serialVersionUID = -2700241427681303048L;
//ParID
@Id
@Column(name = "PARID" , nullable = false)
private String parid;

//病案号
@Column(name = "MR_NO")
private String mrNo;

//医保类型
@Column(name = "HI_TYPE")
private String hiType;

//基金支付
@Column(name = "FUND_PAY")
private Double fundPay;

//自费费用
@Column(name = "PRIVATE_PAY")
private Double privatePay;

//个人自付一
@Column(name = "PRIVATE_PAY1")
private Double privatePay1;

//个人自付二
@Column(name = "PRIVATE_PAY2")
private Double privatePay2;

//红冲标识
@Column(name = "RED_MARK")
private String redMark;

//出院日期
@Column(name = "OUT_DATE")
private Date outDate;

//医疗类别
@Column(name = "MEDICAL_CATEGORY")
private String medicalCategory;

//出院类型
@Column(name = "OUT_TYPE")
private String outType;

//入院日期
@Column(name = "IN_DATE")
private Date inDate;

//拒付金额
@Column(name = "REFUSE_FEE")
private Double refuseFee;

//拒付原因
@Column(name = "REFUSE_REASON")
private String refuseReason;

//是否异常
@Column(name = "IS_ABNORMAL")
private String isAbnormal;

/* (non-Javadoc)
 * @see org.dayatang.domain.Entity#getId()
 */
@Override
public Serializable getId() {
	// TODO Auto-generated method stub
	return parid;
}

/* (non-Javadoc)
 * @see org.openkoala.koala.commons.domain.KoalaBaseEntity#businessKeys()
 */
@Override
public String[] businessKeys() {
	// TODO Auto-generated method stub
	return null;
}

public String getParid() {
	return parid;
}

public void setParid(String parid) {
	this.parid = parid;
}

public String getMrNo() {
	return mrNo;
}

public void setMrNo(String mrNo) {
	this.mrNo = mrNo;
}

public String getHiType() {
	return hiType;
}

public void setHiType(String hiType) {
	this.hiType = hiType;
}

public Double getFundPay() {
	return fundPay;
}

public void setFundPay(Double fundPay) {
	this.fundPay = fundPay;
}

public Double getPrivatePay() {
	return privatePay;
}

public void setPrivatePay(Double privatePay) {
	this.privatePay = privatePay;
}

public Double getPrivatePay1() {
	return privatePay1;
}

public void setPrivatePay1(Double privatePay1) {
	this.privatePay1 = privatePay1;
}

public Double getPrivatePay2() {
	return privatePay2;
}

public void setPrivatePay2(Double privatePay2) {
	this.privatePay2 = privatePay2;
}

public String getRedMark() {
	return redMark;
}

public void setRedMark(String redMark) {
	this.redMark = redMark;
}

public Date getOutDate() {
	return outDate;
}

public void setOutDate(Date outDate) {
	this.outDate = outDate;
}

public String getMedicalCategory() {
	return medicalCategory;
}

public void setMedicalCategory(String medicalCategory) {
	this.medicalCategory = medicalCategory;
}

public String getOutType() {
	return outType;
}

public void setOutType(String outType) {
	this.outType = outType;
}

public Date getInDate() {
	return inDate;
}

public void setInDate(Date inDate) {
	this.inDate = inDate;
}

public Double getRefuseFee() {
	return refuseFee;
}

public void setRefuseFee(Double refuseFee) {
	this.refuseFee = refuseFee;
}

public String getRefuseReason() {
	return refuseReason;
}

public void setRefuseReason(String refuseReason) {
	this.refuseReason = refuseReason;
}

public String getIsAbnormal() {
	return isAbnormal;
}

public void setIsAbnormal(String isAbnormal) {
	this.isAbnormal = isAbnormal;
}

/**
 * @param parid
 * @param mrNo
 * @param hiType
 * @param fundPay
 * @param privatePay
 * @param privatePay1
 * @param privatePay2
 * @param redMark
 * @param outDate
 * @param medicalCategory
 * @param outType
 * @param inDate
 * @param refuseFee
 * @param refuseReason
 * @param isAbnormal
 */
public Medins(String parid, String mrNo, String hiType, Double fundPay,
		Double privatePay, Double privatePay1, Double privatePay2,
		String redMark, Date outDate, String medicalCategory, String outType,
		Date inDate, Double refuseFee, String refuseReason,String isAbnormal) {
	super();
	this.parid = parid;
	this.mrNo = mrNo;
	this.hiType = hiType;
	this.fundPay = fundPay;
	this.privatePay = privatePay;
	this.privatePay1 = privatePay1;
	this.privatePay2 = privatePay2;
	this.redMark = redMark;
	this.outDate = outDate;
	this.medicalCategory = medicalCategory;
	this.outType = outType;
	this.inDate = inDate;
	this.refuseFee = refuseFee;
	this.refuseReason = refuseReason;
	this.isAbnormal = isAbnormal;
}
/**
 * 
 *  medInsMap.  
 *  @Description：对应关系
 *  @Author ZouYiyu
 *  @return 
 *  @Date:2017年10月13日下午4:20:39
 */
public Map<String, Object> medInsMap() {
	Map<String, Object> map = new HashMap<>();
	map.put("MR_NO", "mrNo");
	map.put("HI_TYPE", "hiType");
	map.put("FUND_PAY", "fundPay");
	map.put("PRIVATE_PAY", "privatePay");
	map.put("PRIVATE_PAY1", "privatePay1");
	map.put("PRIVATE_PAY2", "privatePay2");
	map.put("RED_MARK", "redMark");
	map.put("OUT_DATE", "outDate");
	map.put("MEDICAL_CATEGORY", "medicalCategory");
	map.put("OUT_TYPE", "outType");
	map.put("IN_DATE", "inDate");
	map.put("REFUSE_FEE", "refuseFee");
	map.put("REFUSE_REASON", "refuseReason");
	map.put("IS_ABNORMAL", "isAbnormal");

	return map;
}
/**
 * 
 */
public Medins() {
	super();
}

}

